<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
	String msg = (String)request.getAttribute("msg");
	if(msg == null) msg = "";
	String code = (String)request.getAttribute("code");
	if(code == null || code.length() == 0) code = "";
	String pass = (String)request.getAttribute("pass");
	if(pass == null || pass.length() == 0) pass = ""; 
	session.removeAttribute("user");
%>
<% String contextPath = request.getContextPath(); %>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  <link rel="stylesheet" href="<%= contextPath %>/css/style.css" type="text/css" />
  <link rel="stylesheet" href="<%= contextPath %>/css/login.css" type="text/css" />
  <title>ログイン</title>
</head>
<body>
	<div id="logall">
		<div id="none"></div>
		<hr class="grad">
		<div id="center">
			<div id="logimg" align="center">
				<img src="<%= contextPath %>/res/makino.jpg"  id="img">
			</div>
			<div id="logtable">
				<form action="<%= contextPath %>/orderCus/LoginServlet" method="post" id="logform">
					ID<br />
					<input type="text" name="code" value="<%= code %>"  id="inp" /><br />
					パスワード<br />
					<input type="password" name="pass" id="inp" /><br />
					<br />
					<input type="submit" value="ログイン" id="btn" />
					<div id="lmsg">
						<%= msg.replaceAll("\n", "<br />") %>
					</div> 
					<div style="clear:both;" ></div>
				</form>
			</div>
		</div>
		<br />
		<br />
		<br />
		<hr class="grad">
		<div id="none"></div>
	</div>
</body>
</html>
